package com.zhiche.lisa.lspm.service.sys;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.lspm.dao.model.sys.Permission;

import java.util.List;

/**
 * 权限 service
 *
 * @author hxh
 * @since 2018-09-28
 */
public interface IPermissionService extends IService<Permission> {

    /**
     * 获取全部可用权限列表
     */
    List<Permission> queryAllUsablePermission();

    Permission[] levelOne(Integer roleId);

    Permission[] levelTwo(Integer roleId,Integer pid);
}
